﻿using Entity;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IRepository
{
    public interface IStorageLocationRepository
    {
        Task<PaginationResult<StorageLocationEntity>> GetPagedListAsync(PaginationQuery query);
        Task DeleteAsync(int id);
        Task DeleteBatchAsync(int[] ids);
        Task<int> AddAsync(StorageLocationEntity entity); // 新增库位，返回新增ID
        IDbConnection GetDbConnection(); // 添加获取连接的方法
        Task<List<int>> GetIdsByWarehouseIdAsync(int warehouseId);
        // 新增：根据仓库ID获取完整的仓库位信息（含ID、名称等）
        Task<List<StorageLocationEntity>> GetByWarehouseIdAsync(int warehouseId);

    }
}
